<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <script  src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>

    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改商品信息</h3>
    <form class="form-horizontal" action="${pageContext.request.contextPath}/updateShop" method="POST">

        <%--隐藏域--%>
        <input type="hidden" name="sid" value="${Shop.sid}" />
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">商品名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" value="${Shop.name}"  id="name" >
                </div>
            </div>

        <div class="form-group">
            <label for="sprice" class="col-sm-2 control-label">商品价格</label>
            <div class="col-sm-10">
                <input type="sprice" class="form-control" name="sprice"  value="${Shop.sprice}" id="sprice" >
            </div>
        </div>
            <div class="form-group">
                <label for="tid" class="col-sm-2 control-label">商品分类</label>
                <div class="col-sm-10">
                    <input type="tid" class="form-control" name="tid"  value="${Shop.tid}" id="tid" >
                </div>
            </div>



        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="保存" />
            <input class="btn btn-default" type="reset" value="重置" />
            <input class="btn btn-default" type="button" value="返回"/>
        </div>

    </form>
</div>
